/*
 * BaseHDF5.h
 *
 *  Created on: Aug 9, 2013
 *      Author: paste
 */

#ifndef BASEHDF5_H_
#define BASEHDF5_H_

// Forward declarations
namespace H5 {
class H5File;
}

class BaseHDF5
{
public:
  enum IOMode
  {
    APPEND = 0, TRUNCATE
  };

  virtual ~BaseHDF5() throw ()
  {
    myFile.close();
  }

protected:

  BaseHDF5(const std::string &filename, const IOMode &ioMode);

  H5::H5File myFile;

};

#endif /* BASEHDF5_H_ */
